//
//  BaseHttpRequest.h
//  DianBa
//
//  Created by karl on 2018/8/20.
//  Copyright © 2018年 DianBa. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^SuccessCompletionBlock)(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject);
typedef void (^FailureCompletionBlock)(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error);

@interface BaseHttpRequest : NSObject

//上传字典
+(void)requestWithUrl:(NSString*_Nullable)url andParameter:(NSDictionary *_Nullable)param success:(SuccessCompletionBlock _Nullable )successBlock failure:(FailureCompletionBlock _Nullable )failureBlock;
//上传图片

@end
